import React, { useEffect, useMemo, useState } from 'react';
import ShopList from './shopList';
import style from './index.less';


const ShopListScroll = ({ homeData }) => {
    // const market = homeData?.market || [];
    const data = useMemo(()=>{
     const dt = homeData.shopListScroll
     if(dt){
        return [
            {
                name: dt.layoutName,
                Goods: dt.strcutData || []
            }
        ]
     }
     return []
    }, [homeData?.shopListScroll])

    return (
        <ShopList list={data} type='SCROLL' />
    )
}

export default ShopListScroll;